<?php
preg_match('/([\w\+_:,]+)-([\w\+-_:,]+)/i', $_SERVER["PATH_INFO"],$Apath_info);
if(empty($Apath_info)){
	preg_match('/([\w\+_:,]+)/i', $_SERVER["PATH_INFO"],$Apath_info);
}else{
	$_GET['i'] = $Apath_info[2];
}
include($Apath_info[1].'.php');
?>